package Core.GameServer;

//Server.java
import java.net.*;
import java.io.*;

public class GameServer {
	public GameServer(int port) throws IOException {
		System.out.println("Starting server...");
		ServerSocket ss = new ServerSocket(port);
		System.out.println("Listening to Port: " + port);
		while (true) {
			new ServerThread(ss.accept());
		}
	}
}